package com.example.springboot_zc.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot_zc.mapper.zydataMapper;
import com.example.springboot_zc.pojo.ZyData;
import com.example.springboot_zc.service.zydataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class zydataServiceImpl extends ServiceImpl<zydataMapper, ZyData> implements zydataService {
    @Autowired
    zydataMapper zydataMapper;

    public Integer deleteByStu(String stuNum){return zydataMapper.deleteByStu(stuNum);}

    public List<ZyData> selectByStu(String stuNum){return zydataMapper.selectByStu(stuNum);}

}
